package com.example.demo.proxy;

import com.example.demo.aspect.CostTime;
import org.springframework.stereotype.Component;

@Component
public class RealHouseSubject implements HouseSubject{
    @CostTime
    @Override
    public void rent() {
        System.out.println("我是房东, 我要出租房子");
    }

    @Override
    public void sale() {
        System.out.println("我是房东, 我要出售房子");
    }
}
